<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\index\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
		'nickname' => 'require',
		'username' => 'require|min:5',
		'password' => 'require',
		'repassword' => 'require|confirm:password',
    ];

    protected $message = [
		'nickname.require'   => '请输入昵称',
		'username.require'   => '请输入用户名',
		'username.min'       => '用户名太短',
		'password.require'   => '请输入密码',
		'repassword.require' => '请再次输入密码',
		'repassword.confirm' => '两次输入的密码不一致',
    ];

}